package com.administration.entity.resultsetmapping;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

@Entity
public class PrivilegeMapping implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	private Long recid;

	private Long groupId;
	private Long privilegeId;
	private String privilegeName;
	private Long accessId;
	private Long categoryId;

	public PrivilegeMapping() {
	}

	public PrivilegeMapping(Long groupId, Long privilegeId,
			String privilegeName, Long accessId) {
		this.groupId = groupId;
		this.privilegeId = privilegeId;
		this.privilegeName = privilegeName;
		this.accessId = accessId;
	}

	public PrivilegeMapping(Long groupId, Long privilegeId,
			String privilegeName, Long accessId, Long categoryId) {
		super();
		this.groupId = groupId;
		this.privilegeId = privilegeId;
		this.privilegeName = privilegeName;
		this.accessId = accessId;
		this.categoryId = categoryId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public Long getGroupId() {
		return groupId;
	}

	public Long getPrivilegeId() {
		return privilegeId;
	}

	public void setPrivilegeId(Long privilegeId) {
		this.privilegeId = privilegeId;
	}

	public Long getAccessId() {
		return accessId;
	}

	public void setAccessId(Long accessId) {
		this.accessId = accessId;
	}

	public void setPrivilegeName(String privilegeName) {
		this.privilegeName = privilegeName;
	}

	public String getPrivilegeName() {
		return privilegeName;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setRecId(Long recid) {
		this.recid = recid;
	}

	public Long getRecId() {
		return recid;
	}

	@Override
	public String toString() {
		return "PrivilegeMapping [recid=" + recid + ", groupId=" + groupId
				+ ", privilegeId=" + privilegeId + ", privilegeName="
				+ privilegeName + ", accessId=" + accessId + ", categoryId="
				+ categoryId + "]";
	}

}
